package com.etcn.modules.busi.dictionary.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;
import com.etcn.modules.busi.dictionary.service.ISysDictService;
import com.etcn.modules.busi.dictionary.pojo.SysDict;

/**
 * 字典controller
 * @author guozc
 * @date: 2018-04-18 21:31:09
 */
@Controller
@RequestMapping("/API1.0/SysDict")
public class SysDictController extends BaseController {

	@Autowired
    private ISysDictService sysDictService;

     /**
     * 根据id查询字典
     */
    @Manage
    @RequestMapping(value = "getById", method = RequestMethod.GET)
    public @ResponseBody Object getById(SysDict sysDict) throws Exception{
    	return sysDictService.getById(sysDict.getId());
    }
    
}